package com.fessc.develop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fessc.develop.entity.dbvo.GetToken;
import com.fessc.develop.mapper.GetTokenMapper;
import com.fessc.develop.service.interfaces.IGetTokenService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author y
 * @since 2025-03-19
 */
@Service
public class GetTokenServiceImpl extends ServiceImpl<GetTokenMapper, GetToken> implements IGetTokenService {

    @Resource
    private GetTokenMapper getTokenMapper;

    /**
     * 获取最新公共服务平台token
     *
     * @return 公共服务平台token
     */
    @Override
    public GetToken getLatestToken() {
        return getTokenMapper.getLatestToken();
    }

}
